package com.framework.loippi.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.framework.loippi.dao.UserShareDao;
import com.framework.loippi.entity.UserShare;
import com.framework.loippi.service.UserShareService;
import java.util.List;
/**
 * SERVICE - UserShare(用户分享)
 * 
 * @author wmj
 * @version 2.0
 */
@Service
public class UserShareServiceImpl extends GenericServiceImpl<UserShare, Long> implements UserShareService {
	
	@Autowired
	private UserShareDao userShareDao;
	
	
	@Autowired
	public void setGenericDao() {
		super.setGenericDao(userShareDao);
	}

	public List<UserShare> findListByPage(Object parameter){
		return userShareDao.findListByPage(parameter);
	}

	public Long deletes(Object parameter){
		return userShareDao.deletes( parameter);
	}

	@Override
	public List<UserShare> findByUserId(Long userId) {
		return userShareDao.findByUserId(userId);
	}


}
